package com.fdd.op.sdk.model.dto;

import com.fdd.op.sdk.internal.mapping.RequestField;

/**
 * 水印描述类
 *
 * @author Fadada
 * @date 2021/04/26
 */
public class WaterMarkDTO {
    @RequestField(value = "水印类型，1-文字，2-图片，3.文档编号。文件信息、图片、编号信息只传一个")
    private Integer type;

    @RequestField(value = "文字水印内容，当水印类型为1时，必填。取值范围[1-20]位")
    private String text;

    @RequestField(value = "水印图片，上传文件接口返回的文件id，当水印类型为2时，必填。图片类型：仅限png、jpg、jpeg；图片尺寸：不超过595*842；图片大小：不超过300kb。")
    private String imageId;

    @RequestField(value = "字体大小，当水印类型为1时，必填。取值范围[6-48]号")
    private Float fontSize;

    @RequestField(value = "字体颜色，默认为#666666")
    private String fontColor ="#666666";

    @RequestField(value = "旋转角度，默认不旋转。正角度为逆时针，负角度为顺时针（值为数字，无需加度数符号）")
    private float rotate;

    @RequestField(value = "透明度，范围10-90%（默认40%）")
    private float opacity = 40;

    @RequestField(value = "水印位置，可指定当前设置水印位置，6个样式：0:左上（默认）、1:右上、2:左下、3:右下、4:平铺、8:填充（填充平铺到页面80%占比即可）不传则取默认值")
    private Integer positionType = 0;

    @RequestField(value = "需要加盖水印的文件id，为空视为全部加盖")
    private String originalFileIds;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }

    public Float getFontSize() {
        return fontSize;
    }

    public void setFontSize(Float fontSize) {
        this.fontSize = fontSize;
    }

    public String getFontColor() {
        return fontColor;
    }

    public void setFontColor(String fontColor) {
        this.fontColor = fontColor;
    }

    public float getRotate() {
        return rotate;
    }

    public void setRotate(float rotate) {
        this.rotate = rotate;
    }

    public float getOpacity() {
        return opacity;
    }

    public void setOpacity(float opacity) {
        this.opacity = opacity;
    }

    public Integer getPositionType() {
        return positionType;
    }

    public void setPositionType(Integer positionType) {
        this.positionType = positionType;
    }

    public String getOriginalFileIds() {
        return originalFileIds;
    }

    public void setOriginalFileIds(String originalFileIds) {
        this.originalFileIds = originalFileIds;
    }
}
